<?php
include_once "../librari/koneksi.php";
$item = $_GET['id'];
/*$sql = "select * from nilai_pelamar where id=".$item;
*/
/*$sql = "select pelamar.idPelamar,pelamar.nama, pelamar.posisi, 
						nilai_pelamar.logika, nilai_pelamar.kecermatan, nilai_pelamar.kepribadian, nilai_pelamar.karakter
						from pelamar
						join nilai_pelamar on nilai_pelamar.idPelamar = pelamar.idPelamar where pelamar.idPelamar=".$item;*/
$id="";
$nama="";
$log="";
$kec="";
$kep="";
$kar="";
/*$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
   $id=$row['idPelamar'];
   $nama=$row['nama'];
   $log=$row['logika'];
   $kec=$row['kecermatan'];
   $kep=$row['kepribadian'];
   $kar=$row['karakter'];
}
*/
?>

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>nilainull</title>
<link href="styleadmin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="styleadmin.css" type="text/css" />
<style type="text/css">

</style></head>

<body>
<div id="header">
    <img src="image/logo_kanisius2.gif" class="logo" />
</div>

<div id="garis">
</div>

<div id="contenthome">
     <div id="leftcontent">
	 <div id="linksectionhome"><a href="home_hrd.php">Home</a></div>
	 <div id="linksectionhome"><a href="data_pelamar.php">Data Pelamar</a></div>
	 <div id="linksectionhome"><a href="pelamarlolos1.php">Pelamar Lolos 1</a></div>
	 <div id="linksectionhome"> <a href="list_nilai_pelamar.php">Nilai Pelamar</a> </div>
	 <div id="linksectionhome"> <a href="sppk.php">SPPK</a> </div>
	 <div id="linksectionhome"><a href="logout.php">Logout</a></div>
</div>

<div id="rightcontent">
<form id="form1" name="form1" method="post" action="proses_insert_nilaiPelamar.php">
<?php
include_once "../librari/koneksi.php";

echo "
	  <table>
	<tr>
	<th>No</th>
	<th>nama</th>
	<th>posisi</th>
	<th></th>
	</tr>";

  $tampil = "SELECT * FROM pelamar
			LEFT JOIN nilai_pelamar ON nilai_Pelamar.idPelamar = pelamar.idPelamar
			WHERE nilai_pelamar.idPelamar IS NULL";
  $hasil=mysql_query($tampil);
                $no=+1;
                while ($r=mysql_fetch_array($hasil)){

	 echo "
	 	   <tr><td>$no</td>
		   <td>$r[nama]</td>
		   <td>$r[posisi]</td>
		   <td><center><a href=insert_nilai_pelamar.php?id=$r[id]>tambah nilai</a>
		   ";
		 
           
$no++; 
}
echo "</table>";
	
 ?>

</form>
</div>
</div>

</body>
</html>

<?
ob_end_flush();
?>
